package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_flowimg table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_flowimg"
 */

public abstract class BaseTJesFlowimg  implements Serializable {

	public static String REF = "TJesFlowimg";
	public static String PROP_STATUS = "Status";
	public static String PROP_STEP = "Step";
	public static String PROP_DELAY = "Delay";
	public static String PROP_WIDTH = "Width";
	public static String PROP_HEIGHT = "Height";
	public static String PROP_Y = "Y";
	public static String PROP_URL = "Url";
	public static String PROP_IMG = "Img";
	public static String PROP_NAME = "Name";
	public static String PROP_ID = "Id";
	public static String PROP_X = "X";


	// constructors
	public BaseTJesFlowimg () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesFlowimg (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String name;
	private java.lang.String img;
	private java.lang.Integer height;
	private java.lang.Integer width;
	private java.lang.String url;
	private java.lang.Integer x;
	private java.lang.Integer y;
	private java.lang.Integer step;
	private java.lang.Integer delay;
	private java.lang.String status;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: name
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: name
	 * @param name the name value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: img
	 */
	public java.lang.String getImg () {
		return img;
	}

	/**
	 * Set the value related to the column: img
	 * @param img the img value
	 */
	public void setImg (java.lang.String img) {
		this.img = img;
	}



	/**
	 * Return the value associated with the column: height
	 */
	public java.lang.Integer getHeight () {
		return height;
	}

	/**
	 * Set the value related to the column: height
	 * @param height the height value
	 */
	public void setHeight (java.lang.Integer height) {
		this.height = height;
	}



	/**
	 * Return the value associated with the column: width
	 */
	public java.lang.Integer getWidth () {
		return width;
	}

	/**
	 * Set the value related to the column: width
	 * @param width the width value
	 */
	public void setWidth (java.lang.Integer width) {
		this.width = width;
	}



	/**
	 * Return the value associated with the column: url
	 */
	public java.lang.String getUrl () {
		return url;
	}

	/**
	 * Set the value related to the column: url
	 * @param url the url value
	 */
	public void setUrl (java.lang.String url) {
		this.url = url;
	}



	/**
	 * Return the value associated with the column: x
	 */
	public java.lang.Integer getX () {
		return x;
	}

	/**
	 * Set the value related to the column: x
	 * @param x the x value
	 */
	public void setX (java.lang.Integer x) {
		this.x = x;
	}



	/**
	 * Return the value associated with the column: y
	 */
	public java.lang.Integer getY () {
		return y;
	}

	/**
	 * Set the value related to the column: y
	 * @param y the y value
	 */
	public void setY (java.lang.Integer y) {
		this.y = y;
	}



	/**
	 * Return the value associated with the column: step
	 */
	public java.lang.Integer getStep () {
		return step;
	}

	/**
	 * Set the value related to the column: step
	 * @param step the step value
	 */
	public void setStep (java.lang.Integer step) {
		this.step = step;
	}



	/**
	 * Return the value associated with the column: delay
	 */
	public java.lang.Integer getDelay () {
		return delay;
	}

	/**
	 * Set the value related to the column: delay
	 * @param delay the delay value
	 */
	public void setDelay (java.lang.Integer delay) {
		this.delay = delay;
	}



	/**
	 * Return the value associated with the column: status
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: status
	 * @param status the status value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesFlowimg)) return false;
		else {
			com.lovejes.app.domain.TJesFlowimg tJesFlowimg = (com.lovejes.app.domain.TJesFlowimg) obj;
			if (null == this.getId() || null == tJesFlowimg.getId()) return false;
			else return (this.getId().equals(tJesFlowimg.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}